package com.fuled.test.tool_entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.ArrayList;

@Data
public class RecordEntityPerformanceTool {

    private String id;

    /**
     * requestId
     * 请求id
     */
    private String requestId;

    /**
     * timestamp
     * 时间戳
     */
    private Long timestamp;

    /**
     * user
     * 访问的用户
     */
    private String user;

    /**
     * ipAddress
     * 访问的ip
     */
    private String ipAddress;

    /**
     * totalCostTime
     * 总消耗时间
     */
    private Long totalCostTime;

    /**
     * createTime
     * 访问时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 控制层信息
     */
    private RecordControllerPerformanceTool recordControllerPerformanceTool;

    /**
     * 业务逻辑层信息
     */
    private ArrayList<RecordServiceImplPerformanceTool> recordServiceImplPerformanceTools;

    /**
     * 持久层信息
     */
    private ArrayList<RecordDaoPerformanceTool> recordDaoPerformanceTool;
}
